/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package org.hl7.v3;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.Enumerator;

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>Ethnicity Hispanic Spaniard</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * <!-- begin-model-doc -->
 * specDomain: S15838 (C-0-T15836-S15837-S15838-cpt)
 * <!-- end-model-doc -->
 * @see org.hl7.v3.V3Package#getEthnicityHispanicSpaniard()
 * @model extendedMetaData="name='EthnicityHispanicSpaniard'"
 * @generated
 */
public enum EthnicityHispanicSpaniard implements Enumerator {
	/**
	 * The '<em><b>21378</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_21378_VALUE
	 * @generated
	 * @ordered
	 */
	_21378(0, "_21378", "2137-8"),

	/**
	 * The '<em><b>21386</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_21386_VALUE
	 * @generated
	 * @ordered
	 */
	_21386(1, "_21386", "2138-6"),

	/**
	 * The '<em><b>21394</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_21394_VALUE
	 * @generated
	 * @ordered
	 */
	_21394(2, "_21394", "2139-4"),

	/**
	 * The '<em><b>21428</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_21428_VALUE
	 * @generated
	 * @ordered
	 */
	_21428(3, "_21428", "2142-8"),

	/**
	 * The '<em><b>21451</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_21451_VALUE
	 * @generated
	 * @ordered
	 */
	_21451(4, "_21451", "2145-1"),

	/**
	 * The '<em><b>21402</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_21402_VALUE
	 * @generated
	 * @ordered
	 */
	_21402(5, "_21402", "2140-2"),

	/**
	 * The '<em><b>21410</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_21410_VALUE
	 * @generated
	 * @ordered
	 */
	_21410(6, "_21410", "2141-0"),

	/**
	 * The '<em><b>21436</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_21436_VALUE
	 * @generated
	 * @ordered
	 */
	_21436(7, "_21436", "2143-6"),

	/**
	 * The '<em><b>21469</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_21469_VALUE
	 * @generated
	 * @ordered
	 */
	_21469(8, "_21469", "2146-9"),

	/**
	 * The '<em><b>21444</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_21444_VALUE
	 * @generated
	 * @ordered
	 */
	_21444(9, "_21444", "2144-4");

	/**
	 * The '<em><b>21378</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>21378</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_21378
	 * @model literal="2137-8"
	 * @generated
	 * @ordered
	 */
	public static final int _21378_VALUE = 0;

	/**
	 * The '<em><b>21386</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>21386</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_21386
	 * @model literal="2138-6"
	 * @generated
	 * @ordered
	 */
	public static final int _21386_VALUE = 1;

	/**
	 * The '<em><b>21394</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>21394</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_21394
	 * @model literal="2139-4"
	 * @generated
	 * @ordered
	 */
	public static final int _21394_VALUE = 2;

	/**
	 * The '<em><b>21428</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>21428</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_21428
	 * @model literal="2142-8"
	 * @generated
	 * @ordered
	 */
	public static final int _21428_VALUE = 3;

	/**
	 * The '<em><b>21451</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>21451</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_21451
	 * @model literal="2145-1"
	 * @generated
	 * @ordered
	 */
	public static final int _21451_VALUE = 4;

	/**
	 * The '<em><b>21402</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>21402</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_21402
	 * @model literal="2140-2"
	 * @generated
	 * @ordered
	 */
	public static final int _21402_VALUE = 5;

	/**
	 * The '<em><b>21410</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>21410</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_21410
	 * @model literal="2141-0"
	 * @generated
	 * @ordered
	 */
	public static final int _21410_VALUE = 6;

	/**
	 * The '<em><b>21436</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>21436</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_21436
	 * @model literal="2143-6"
	 * @generated
	 * @ordered
	 */
	public static final int _21436_VALUE = 7;

	/**
	 * The '<em><b>21469</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>21469</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_21469
	 * @model literal="2146-9"
	 * @generated
	 * @ordered
	 */
	public static final int _21469_VALUE = 8;

	/**
	 * The '<em><b>21444</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>21444</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_21444
	 * @model literal="2144-4"
	 * @generated
	 * @ordered
	 */
	public static final int _21444_VALUE = 9;

	/**
	 * An array of all the '<em><b>Ethnicity Hispanic Spaniard</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static final EthnicityHispanicSpaniard[] VALUES_ARRAY =
		new EthnicityHispanicSpaniard[] {
			_21378,
			_21386,
			_21394,
			_21428,
			_21451,
			_21402,
			_21410,
			_21436,
			_21469,
			_21444,
		};

	/**
	 * A public read-only list of all the '<em><b>Ethnicity Hispanic Spaniard</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static final List<EthnicityHispanicSpaniard> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

	/**
	 * Returns the '<em><b>Ethnicity Hispanic Spaniard</b></em>' literal with the specified literal value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static EthnicityHispanicSpaniard get(String literal) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			EthnicityHispanicSpaniard result = VALUES_ARRAY[i];
			if (result.toString().equals(literal)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Ethnicity Hispanic Spaniard</b></em>' literal with the specified name.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static EthnicityHispanicSpaniard getByName(String name) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			EthnicityHispanicSpaniard result = VALUES_ARRAY[i];
			if (result.getName().equals(name)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Ethnicity Hispanic Spaniard</b></em>' literal with the specified integer value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static EthnicityHispanicSpaniard get(int value) {
		switch (value) {
			case _21378_VALUE: return _21378;
			case _21386_VALUE: return _21386;
			case _21394_VALUE: return _21394;
			case _21428_VALUE: return _21428;
			case _21451_VALUE: return _21451;
			case _21402_VALUE: return _21402;
			case _21410_VALUE: return _21410;
			case _21436_VALUE: return _21436;
			case _21469_VALUE: return _21469;
			case _21444_VALUE: return _21444;
		}
		return null;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final int value;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String name;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String literal;

	/**
	 * Only this class can construct instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private EthnicityHispanicSpaniard(int value, String name, String literal) {
		this.value = value;
		this.name = name;
		this.literal = literal;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getValue() {
	  return value;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getName() {
	  return name;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getLiteral() {
	  return literal;
	}

	/**
	 * Returns the literal value of the enumerator, which is its string representation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		return literal;
	}
	
} //EthnicityHispanicSpaniard
